package com.haidechizi.designpattern.singleton.hungry;

/**
 * @author haidechizi
 */
public class SimpleStaticHungrySingleton {

    private SimpleStaticHungrySingleton() {
    }

    // 静态变量
    private static final SimpleStaticHungrySingleton lazySingleton;

    static {
        lazySingleton = new SimpleStaticHungrySingleton();
    }


    public static final SimpleStaticHungrySingleton getInstance() {
        return lazySingleton;
    }
}
